package com.jeff.tianti.cms.service;

import com.jeff.tianti.cms.entity.ApplicationForMembership;
import com.jeff.tianti.cms.dao.ApplicationForMembershipDao;
import com.jeff.tianti.cms.dto.ApplicationForMembershipQueryDTO;
import com.jeff.tianti.common.service.CommonService;
import com.jeff.tianti.common.entity.PageModel;
import org.springframework.stereotype.Service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author xujianfang
 * @desc ApplicationForMembershipService��
 * @date 2019-07-05
 */
@Service
public class ApplicationForMembershipService extends CommonService<ApplicationForMembership, String> {

    @Autowired
    private ApplicationForMembershipDao applicationForMembershipDao;

    @Autowired
    public void setApplicationForMembershipDao(ApplicationForMembershipDao applicationForMembershipDao) {
        super.setCommonDao(applicationForMembershipDao);
    }

    public PageModel<ApplicationForMembership> queryApplicationForMembershipPage(ApplicationForMembershipQueryDTO applicationForMembershipQueryDTO) {
        return this.applicationForMembershipDao.queryApplicationForMembershipPage(applicationForMembershipQueryDTO);
    }

    public List<ApplicationForMembership> queryApplicationForMembershipList(ApplicationForMembershipQueryDTO applicationForMembershipQueryDTO) {
        return this.applicationForMembershipDao.queryApplicationForMembershipList(applicationForMembershipQueryDTO);
    }

}